package com.chaoyi.dao.mysql;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chaoyi.model.Role;

public interface RoleMapper {

	public List<Role> findRoleList(@Param("offset") String offset, @Param("limit") String limit);

	public int addRole(@Param("roleName")String roleName);

	public int deleteRole(@Param("id")int id);

	public List<Role> findModelInfo(@Param("roleId")int roleId);

	public void updateModelInfo(@Param("list")List<Role> roleList);

	public void deleteModelInfo(@Param("roleId")int roleId);

	public int findRoleId(@Param("id")int id);
	
	public List<Role> findRoleName();

}
